/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package entity;

import java.io.Serializable;
public class Utente implements Serializable {
	public Utente() {
	}
	
	private java.util.Set this_getSet (int key) {
		if (key == entity.ORMConstants.KEY_UTENTE_CONTATTO) {
			return ORM_contatto;
		}
		else if (key == entity.ORMConstants.KEY_UTENTE_MESSAGGIO) {
			return ORM_messaggio;
		}
		
		return null;
	}
	
	org.orm.util.ORMAdapter _ormAdapter = new org.orm.util.AbstractORMAdapter() {
		public java.util.Set getSet(int key) {
			return this_getSet(key);
		}
		
	};
	
	private int ID;
	
	private String username;
	
	private String password;
	
	private String avatar;
	
	private String nickname;
	
	private String nome;
	
	private String cognome;
	
	private long data_nascita;
	
	private String classe_utenza;
	
	private String citta;
	
	private String indirizzo;
	
	private String outgoing_mail_server;
	
	private String incoming_mail_serve;
	
	private Integer outgoing_port;
	
	private Integer incoming_port;
	
	private java.util.Set ORM_contatto = new java.util.HashSet();
	
	private java.util.Set ORM_messaggio = new java.util.HashSet();
	
	private void setID(int value) {
		this.ID = value;
	}
	
	public int getID() {
		return ID;
	}
	
	public int getORMID() {
		return getID();
	}
	
	public void setUsername(String value) {
		this.username = value;
	}
	
	public String getUsername() {
		return username;
	}
	
	public void setPassword(String value) {
		this.password = value;
	}
	
	public String getPassword() {
		return password;
	}
	
	public void setAvatar(String value) {
		this.avatar = value;
	}
	
	public String getAvatar() {
		return avatar;
	}
	
	public void setNickname(String value) {
		this.nickname = value;
	}
	
	public String getNickname() {
		return nickname;
	}
	
	public void setNome(String value) {
		this.nome = value;
	}
	
	public String getNome() {
		return nome;
	}
	
	public void setCognome(String value) {
		this.cognome = value;
	}
	
	public String getCognome() {
		return cognome;
	}
	
	public void setData_nascita(long value) {
		this.data_nascita = value;
	}
	
	public long getData_nascita() {
		return data_nascita;
	}
	
	public void setClasse_utenza(String value) {
		this.classe_utenza = value;
	}
	
	public String getClasse_utenza() {
		return classe_utenza;
	}
	
	public void setCitta(String value) {
		this.citta = value;
	}
	
	public String getCitta() {
		return citta;
	}
	
	public void setIndirizzo(String value) {
		this.indirizzo = value;
	}
	
	public String getIndirizzo() {
		return indirizzo;
	}
	
	public void setOutgoing_mail_server(String value) {
		this.outgoing_mail_server = value;
	}
	
	public String getOutgoing_mail_server() {
		return outgoing_mail_server;
	}
	
	public void setIncoming_mail_serve(String value) {
		this.incoming_mail_serve = value;
	}
	
	public String getIncoming_mail_serve() {
		return incoming_mail_serve;
	}
	
	public void setOutgoing_port(int value) {
		setOutgoing_port(new Integer(value));
	}
	
	public void setOutgoing_port(Integer value) {
		this.outgoing_port = value;
	}
	
	public Integer getOutgoing_port() {
		return outgoing_port;
	}
	
	public void setIncoming_port(int value) {
		setIncoming_port(new Integer(value));
	}
	
	public void setIncoming_port(Integer value) {
		this.incoming_port = value;
	}
	
	public Integer getIncoming_port() {
		return incoming_port;
	}
	
	private void setORM_Contatto(java.util.Set value) {
		this.ORM_contatto = value;
	}
	
	private java.util.Set getORM_Contatto() {
		return ORM_contatto;
	}
	
	public final entity.ContattoSetCollection contatto = new entity.ContattoSetCollection(this, _ormAdapter, entity.ORMConstants.KEY_UTENTE_CONTATTO, entity.ORMConstants.KEY_CONTATTO_UTENTE, entity.ORMConstants.KEY_MUL_ONE_TO_MANY);
	
	private void setORM_Messaggio(java.util.Set value) {
		this.ORM_messaggio = value;
	}
	
	private java.util.Set getORM_Messaggio() {
		return ORM_messaggio;
	}
	
	public final entity.MessaggioSetCollection messaggio = new entity.MessaggioSetCollection(this, _ormAdapter, entity.ORMConstants.KEY_UTENTE_MESSAGGIO, entity.ORMConstants.KEY_MESSAGGIO_UTENTE, entity.ORMConstants.KEY_MUL_ONE_TO_MANY);
	
	public String toString() {
		return String.valueOf(getID());
	}
	
}
